package com.yanqu.road.entity.activity.zhenhuan.config;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.sql.ResultSet;
import java.sql.SQLException;

@FieldTypeAnnotation(tableName = "t_s_activity_zhenhuan_concubine", desc = "甄嬛传第一阶段妃子表")
public class ZhenHuanConcubineConfig extends DataObject {
    @FieldTypeAnnotation(select = true, isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "妃子id", isIndex = true)
    private int id;
    @FieldTypeAnnotation(desc = "名称")
    private String name;
    @FieldTypeAnnotation(desc = "形象")
    private String icon;
    @FieldTypeAnnotation(desc = "描述")
    private String desc;
    @FieldTypeAnnotation(desc = "分数")
    private int score;
    @FieldTypeAnnotation(desc = "词条属性")
    private String attribute;
    @FieldTypeAnnotation(desc = "品质")
    private String quality;

    public ZhenHuanConcubineConfig(ResultSet rs) throws SQLException {
        this.activityId = rs.getInt("activityId");
        this.id = rs.getInt("id");
        this.name = rs.getString("name");
        this.icon = rs.getString("icon");
        this.desc = rs.getString("desc");
        this.score = rs.getInt("score");
        this.attribute = rs.getString("attribute");
        this.quality = rs.getString("quality");
    }

    public int getActivityId() {
        return activityId;
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getIcon() {
        return icon;
    }

    public String getDesc() {
        return desc;
    }

    public int getScore() {
        return score;
    }

    public String getAttribute() {
        return attribute;
    }

    public String getQuality() {
        return quality;
    }
}
